package com.infoland.afanmall.model.guiGe.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

public class GuiGeEntity implements MultiItemEntity {
    @Override
    public String toString() {
        return "GuiGeEntity{" +
                "s_goods_id=" + s_goods_id +
                ", flag=" + flag +
                ", id=" + id +
                ", s_name='" + s_name + '\'' +
                ", goodsSpecValList=" + goodsSpecValList +
                '}';
    }

    @Override
    public int getItemType() {
        return CartType.INSERT_CART;
    }

    /**
     * s_goods_id : 195
     * flag : 1
     * goodsSpecValList : [{"s_value":"38","flag":1,"spec_id":510,"goods_id":195,"id":650,"spec_name":"尺码"}]
     * id : 510
     * s_name : 尺码
     */

    private int s_goods_id;
    private int flag;
    private int id;
    private String s_name;
    private List<GoodsSpecValListBean> goodsSpecValList;

    public int getS_goods_id() {
        return s_goods_id;
    }

    public void setS_goods_id(int s_goods_id) {
        this.s_goods_id = s_goods_id;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getS_name() {
        return s_name;
    }

    public void setS_name(String s_name) {
        this.s_name = s_name;
    }

    public List<GoodsSpecValListBean> getGoodsSpecValList() {
        return goodsSpecValList;
    }

    public void setGoodsSpecValList(List<GoodsSpecValListBean> goodsSpecValList) {
        this.goodsSpecValList = goodsSpecValList;
    }


    public static class GoodsSpecValListBean implements MultiItemEntity {
        @Override
        public String toString() {
            return "GoodsSpecValListBean{" +
                    "s_value='" + s_value + '\'' +
                    ", flag=" + flag +
                    ", spec_id=" + spec_id +
                    ", goods_id=" + goods_id +
                    ", id=" + id +
                    ", spec_name='" + spec_name + '\'' +
                    '}';
        }

        /**
         * s_value : 38
         * flag : 1
         * spec_id : 510
         * goods_id : 195
         * id : 650
         * spec_name : 尺码
         */

        private String s_value;
        private int flag;
        private int spec_id;
        private int goods_id;
        private int id;
        private String spec_name;

        public String getS_value() {
            return s_value;
        }

        public void setS_value(String s_value) {
            this.s_value = s_value;
        }

        public int getFlag() {
            return flag;
        }

        public void setFlag(int flag) {
            this.flag = flag;
        }

        public int getSpec_id() {
            return spec_id;
        }

        public void setSpec_id(int spec_id) {
            this.spec_id = spec_id;
        }

        public int getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(int goods_id) {
            this.goods_id = goods_id;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getSpec_name() {
            return spec_name;
        }

        public void setSpec_name(String spec_name) {
            this.spec_name = spec_name;
        }

        @Override
        public int getItemType() {
            return CartType.INSERT_CART;
        }
    }
}
